<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>angularJS- 24课 事件处理指令详解</title>
    <script src="../js/angular.js"></script>
    <script type="text/javascript" src='../js/jquery.min.js'></script>
</head>
<body ng-app='app' ng-controller='myctrl'>
    <button ng-dblclick="show()">双击事件</button>
</body>
    <script>
        var app = angular.module('app',[]);
        app.controller('myctrl',['$scope',function($scope){
            $scope.show = function(){
                alert('双击');
            };
        }]);
    </script>
</html>